﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="USServices.ascx.cs" Inherits="Control_Manager_Services_and_Product_USServices" %>

<style type="text/css">
        html
        {
            background-color: Silver;
        }
        .tabss
        {
            position:inherit;
            top: 1px;
            right: 10px;
        }
        .tabs
        {
            border: solid 1px black;
            background-color: #eeeeee;
            padding: 2px 10px;
        }
        .tabselecteds
        {
            background-color: Aqua;
            border-bottom: solid 1px while;
        }
        .iframe
        {
        overflow-x: hidden;
        overflow-y: scroll;
        }
     
    </style>
       <div style="height:15px">
 </div>

    <div style=" height:791px;font-family: Cambria; width:768px; font-size: 36px; font-weight: bold; color: #000000
    ;font-size: 36px; font-weight: bold; color: #000000;"  >
       &nbsp;&nbsp; [<asp:Label ID="lbServices" runat="server" Text="SERVICES" Font-Bold="True" 
           Font-Names="Cambria" Font-Size="30px"></asp:Label>
       
       ]&nbsp;
       
    
   <asp:Button ID="btnServices" Text="SERVICES" runat="server" 
            onclick="btnServices_Click" Width="133px" Font-Bold="True" 
           Font-Names="Cambria" Height="33px" Font-Size="16px"
           />
   <asp:Button ID="btnServicesCat" Text="SERVICE CATEGORY" runat="server" 
            onclick="btnServicesCat_Click"  Width="154px" Font-Bold="True" 
           Font-Names="Cambria" Height="33px" Font-Size="16px"
           />
     
    
    <div style="height:10px">
 </div>
 
    <asp:MultiView ID="Multiview2" runat="server">
    
    <asp:View ID="Services_Type" runat="server">
    <div class="iframe" style=" height:645px; width:768px " align="center">
                    <asp:GridView ID="GrvServices_Cat" runat="server" AutoGenerateColumns="False" 
                        DataKeyNames="SERCAT_ID" AllowSorting="True" 
                        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
                        CellPadding="3" GridLines="Horizontal" ShowFooter="True" 
                        OnRowEditing="GrvServices_Cat_RowEditing" 
                        OnRowCancelingEdit="GrvServices_Cat_RowCancelingEdit" 
                        onrowdatabound="GrvServices_RowDataBound2" 
                        onrowupdating="GrvServices_Cat_RowUpdating" Width="765px"  Height="650px"
                        onrowcommand="GrvServices_Cat_RowCommand1"  >
                            <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                            <Columns> 
                            
                            
                       
                              <asp:TemplateField HeaderText="ServicesCatagory_ID" ItemStyle-Font-Size="17" 
                                    HeaderStyle-Width="5px" HeaderStyle-Font-Size="17px" Visible="False">
                          
                                  <ItemTemplate>
                                      <asp:Label ID="lbSERCAT_ID" runat="server" Text='<%# Eval("SERCAT_ID") %>'></asp:Label>
                                  </ItemTemplate>
                                  <ControlStyle Width="10px" />
                                  <FooterStyle Width="10px" />
                                  <HeaderStyle Width="5px" />
                                  <ItemStyle Font-Size="17px" />
                            </asp:TemplateField> 
                            
                               
                               <asp:TemplateField HeaderText="SERVICES CATEGORY NAME" HeaderStyle-Font-Size="17px" HeaderStyle-HorizontalAlign="Center"> <EditItemTemplate>
                              <asp:TextBox ID="txtSercat_Name" runat="server" Font-Size="17px" Text='<%# Eval("SERCAT_NAME") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <FooterTemplate>
                              <asp:TextBox ID="txtNewSercat_Name" runat="server" Width="100%" Font-Size="17px"></asp:TextBox> </FooterTemplate>
                            <ItemTemplate>
                             <asp:LinkButton ID="lbtPROTYP_ID" runat="server" CausesValidation="False" 
                               CommandName="Edit"> 
                              <asp:Label ID="lbSERCAT_NAME" runat="server" Width="100%" Text='<%# Bind("SERCAT_NAME") %>'></asp:Label>
                              </asp:LinkButton>
                            </ItemTemplate>
                                   <HeaderStyle Width="50px" />
                                    <ItemStyle Font-Size="17px" />
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Edit" ShowHeader="False" Visible="False" > 
                            <EditItemTemplate> 
                              <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update" Text="Update"></asp:LinkButton> 
                              <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"></asp:LinkButton> 
                            </EditItemTemplate> 
                            <FooterTemplate> 
                              <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="AddNewServices_Cat" Text="Add New"></asp:LinkButton> 
                            </FooterTemplate> 
                            <ItemTemplate> 
                             
                            </ItemTemplate> 
                                <HeaderStyle Width="15px" />
                                 <ItemStyle Font-Size="17px" />
                            </asp:TemplateField> 
                            
                            
                            </Columns>
                            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                            <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="#F7F7F7" 
                                Height="30px" />
                            <AlternatingRowStyle BackColor="#F7F7F7" />
                            </asp:GridView>                       
                   </div>
                    <div style="height:10px">
             </div >
                   <div style="width:768px">
                   <center>
                     <asp:Button ID="btnDeleteSerCat" runat="server" Text="DELETE" Width="80px" Height="30px" 
                   Font-Bold="True" Font-Size="16px" 
                  ForeColor="Black" Font-Names="Cambria" />
                  
     <asp:Button ID="btnAddSerCat" runat="server" Text="ADD" onclick="btnAddSerCat_Click" 
                  Width="80px" Height="30px" Font-Bold="True" Font-Size="16px" 
                  ForeColor="Black" Font-Names="Cambria" />
                  
       <asp:Button ID="btnEditSerCat" runat="server" Width="80px" Height="30px" Text="EDIT" 
                  Font-Bold="True" Font-Size="16px" ForeColor="Black" 
                  Font-Names="Cambria" />
                          </center>  </div>
                   <div style="height:15px">
             </div >
                  
                     
    </asp:View>
    <asp:View ID="Services" runat="server">
    <div class="iframe" style="  height:650px ; width:768px" align="center">
        <asp:GridView ID="GrvServices" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="SER_ID" BackColor="White" 
                        BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
            CellPadding="3" GridLines="Horizontal" ShowFooter="True" 
                        OnRowEditing="GrvServices_RowEditing"       
                        onrowdatabound="GrvServices_RowDataBound1" 
                        onrowupdating="GrvServices_RowUpdating" 
                        onrowcancelingedit="GrvServices_RowCancelingEdit" 
                        onrowcommand="GrvServices_RowCommand1" Width="749px"  
             Height="650px" >
                            <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                            <Columns>

                           
                            
                         
                            <asp:TemplateField HeaderText="SERVICES CATEGORY"  HeaderStyle-Font-Size="17px"> 
                            <EditItemTemplate> 
                              <asp:DropDownList ID="cmbSerCat_ID" runat="server" DataTextField="SERCAT_NAME" 
                                    DataValueField="SERCAT_ID" Font-Size="17px" Width="100%"> </asp:DropDownList> 
                            </EditItemTemplate> 
                            <ItemTemplate> 
                             <asp:LinkButton ID="lbtSERCAT_name" runat="server" CausesValidation="False" CommandName="Edit"> 
                              <asp:Label ID="lbSERCAT_Name" Width="100%" runat="server" Text='<%# Eval("SERCAT_NAME") %>'></asp:Label> 
                              </asp:LinkButton>
                            </ItemTemplate> 
                            <FooterTemplate> 
                              <asp:DropDownList ID="cmbNewSerCat_ID" runat="server" DataTextField="SERCAT_NAME" DataValueField="SERCAT_ID" Width="100%" Font-Size="17px"> </asp:DropDownList> 
                            </FooterTemplate> 
                                <HeaderStyle Font-Size="17px" />
                             <ItemStyle Font-Size="17px" />
                            </asp:TemplateField>
                         
                             <asp:TemplateField HeaderText="NAME"  HeaderStyle-Font-Size="17px">
                            <EditItemTemplate>
                              <asp:TextBox ID="txtServices_Name" runat="server" Font-Size="17px" Width="100%" Text='<%# Bind("SER_NAME") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <FooterTemplate>
                              <asp:TextBox ID="txtNewServices_Name" runat="server" Font-Size="17px" Width="100%"></asp:TextBox>
                            </FooterTemplate>
                            <ItemTemplate>
                            <asp:LinkButton ID="lbtSER_NAME" runat="server" CausesValidation="False" CommandName="Edit"> 
                              <asp:Label ID="lbSER_NAME" Width="100%" runat="server" Text='<%# Bind("SER_NAME") %>'></asp:Label>
                              </asp:LinkButton>
                            </ItemTemplate>
                                 <HeaderStyle Font-Size="17px" />
                             <ItemStyle Font-Size="17px" />
                            </asp:TemplateField>
                            
                             <asp:TemplateField HeaderText="DESCRIPTION"  HeaderStyle-Font-Size="17px">
                            <EditItemTemplate>
                              <asp:TextBox ID="txtServices_Des" runat="server" Width="100%" Font-Size="17px" Text='<%# Bind("SER_DESCRIPTION") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <FooterTemplate>
                              <asp:TextBox ID="txtNewServices_Des" runat="server" Font-Size="17px" Width="100%" ></asp:TextBox>
                            </FooterTemplate>
                            <ItemTemplate>
                            <asp:LinkButton ID="lbtSER_DESCRIPTION" runat="server" CausesValidation="False" CommandName="Edit"> 
                              <asp:Label ID="lbSER_DESCRIPTION" Width="100%" runat="server" Font-Size="17px" Text='<%# Bind("SER_DESCRIPTION") %>'></asp:Label>
                              </asp:LinkButton>
                            </ItemTemplate>
                                 <HeaderStyle Font-Size="17px" />
                             <ItemStyle Font-Size="17px" />
                            </asp:TemplateField>
                            
                             <asp:TemplateField HeaderText="PRICE" HeaderStyle-Font-Size="17px">
                            <EditItemTemplate>
                              <asp:TextBox ID="txtProduct_Services" Width="100%" Font-Size="17px" runat="server" Text='<%# Bind("SER_PRICE") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <FooterTemplate>
                              <asp:TextBox ID="txtNewServices_Price" Width="100%" Font-Size="17px" runat="server" ></asp:TextBox>
                            </FooterTemplate>
                            <ItemTemplate>
                            <asp:LinkButton ID="lbtSER_PRICE" runat="server" CausesValidation="False" CommandName="Edit"> 
                              <asp:Label ID="lbSER_PRICE" runat="server" Font-Size="17px" Text='<%# Bind("Prices") %>'></asp:Label>
                              </asp:LinkButton>
                            </ItemTemplate>
                                 <HeaderStyle Font-Size="17px" />
                             <ItemStyle Font-Size="17px" />
                            </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Edit" ShowHeader="False" Visible="False"> 
                            <EditItemTemplate> 
                              <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update" Font-Size="17px" Text="Update"></asp:LinkButton> 
                              <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel" Font-Size="17px" Text="Cancel"></asp:LinkButton> 
                            </EditItemTemplate> 
                            <FooterTemplate> 
                              <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="AddNewServices" Font-Size="17px" Text="Add New"></asp:LinkButton> 
                            </FooterTemplate> 
                            <ItemTemplate> 
                              <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit"></asp:LinkButton> 
                            </ItemTemplate> 
                             <ItemStyle Font-Size="17px" />
                            </asp:TemplateField> 
                           
                            </Columns>
                            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                            <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="#F7F7F7" 
                                Height="30px" />
                            <AlternatingRowStyle BackColor="#F7F7F7" />
                            </asp:GridView> 
                            </div>
                             <div style="height:12px">
             </div >
                            <div style="width:768px">
                            
                            <center>         
                          <asp:Button ID="btnDeleteSer" runat="server" Text="DELETE" Width="80px" Height="30px" 
                   Font-Bold="True" Font-Size="16px" 
                  ForeColor="Black" Font-Names="Cambria" onclick="btnDeleteSer_Click"/>
                  
     <asp:Button ID="btnAddServices" runat="server" Text="ADD" onclick="btnAddServices_Click" 
                  Width="80px" Height="30px" Font-Bold="True" Font-Size="16px" 
                  ForeColor="Black" Font-Names="Cambria" />
                  
       <asp:Button ID="btnEditSer" runat="server" Width="80px" Height="30px" Text="EDIT" 
                  Font-Bold="True" Font-Size="16px" ForeColor="Black" 
                  Font-Names="Cambria" />
                       </center> </div>
                        <div style="height:12px">
             </div >
                        
    </asp:View>
  
    </asp:MultiView>

    </div>
